package com.yunxi.model.app;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "sys_app_version")
@ApiModel
public class Version implements Serializable {

    private static final long serialVersionUID = -2166091511968308717L;

    @ApiModelProperty(value = "主键id", dataType = "String", example = "d07eaa7d9e2b47039da615cbcaabb5cd")
    @TableId(type = IdType.UUID)
    private String pkId;

    @ApiModelProperty(value = "版本名称", dataType = "String", example = "V2.0.5")
    private String versionName;

    @ApiModelProperty(value = "版本号", dataType = "Integer", example = "20")
    private Integer versionCode;

    @ApiModelProperty(value = "版本查看地址", dataType = "String", example = "http://www.pgyer.com/")
    private String versionUrl;

    @ApiModelProperty(value = "下载地址", dataType = "String", example = "https://www.pgyer.com/vcbu")
    private String downUrl;

    @ApiModelProperty(value = "app类型，0车主 1站点", dataType = "Integer", example = "1")
    private Integer type;

    @ApiModelProperty(value = "平台类型，", dataType = "String", example = "ANDROID")
    private String platform;

    @ApiModelProperty(value = "是否强制升级，0否 1是", dataType = "Integer", example = "0")
    private Integer forceUpdate;

    @ApiModelProperty(value = "创建人", dataType = "String", example = "admin")
    private String createMan;

    @ApiModelProperty(value = "创建时间", dataType = "String", example = "2016-05-30 20:59:21")
    @TableField(value="CREATE_DATE",fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "状态，0禁用 1可用", dataType = "Integer", example = "V2.0.5")
    private Integer status;

    @ApiModelProperty(value = "版本更新内容", dataType = "String", example = "修复已知bug")
    private String content;

}